#include <stdio.h>
int main()
{
	int n,m,k=1;
	char ch ;
	while (1)
	{
		printf("*****\n");
		ch = getchar();
		printf("f\n");
		if (ch=='1')
			printf("1\n");
		else if (ch=='2')
			printf("2\n");
		else break;
	}

	return 0 ;
}



